﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucCaptcha.ascx.cs" Inherits="Axis.Web.Views.Captcha.ucCaptcha" %>
<div>
    <div>
        <asp:Image runat="server" ID="imgCaptcha" CssClass="imgCaptcha" />
        <img id="imgCaptchaRefresh" src="../../Images/img.icon/refresh_32x32.png" onclick="CaptchaRefresh();" style="cursor:pointer;"  />
    </div>
    <div>
        <asp:TextBox runat="server" ID="txtCaptchaCode" style="text-align:center; font-size:30px; height:50px; width:200px;" ClientIDMode="Static"></asp:TextBox>
    </div>
</div>
<script>
    function CaptchaRefresh() {        
        var src = "../../Views/Captcha/ImageCaptcha.ashx?" + $.GuidGenerator();        
        $(".imgCaptcha").attr("src", src);
    }
</script>